#include <iostream>
using namespace std;
int main ()
{
    int k=0;
    float s=1000, p, b;
    do
    {
        cout<<"P->";
        cin>>p;
        if (p<=0||p>25)
            cout<<"nuzno ot 1 do 25"<<"\n";
    }
    while (p<=0||p>25);
    b=(s*p)/100;
    while (s<=1100)
    {
        s=s+b;
        k++;
    }
    cout<<"\n"<<"kolvo mesyacev "<<k<<"\n";
    cout<<"razmer vklada "<<s;
    return 0;
}
